/*
 * JDialogAbout.java
 *
 * Created on 6 de marzo de 2008, 08:30
 */

package com.armed.client.interfaz;

import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;

/**
 *
 * @author  Feder
 */
public class JDialogAbout extends javax.swing.JDialog 
{    
    /** Creates new form JDialogAbout
     * @param parent
     */
    public JDialogAbout(Frame parent)
    {
        this(parent,true);        
    }
    
    /** Creates new form JDialogAbout
     * @param parent
     * @param modal 
     */
    public JDialogAbout(java.awt.Frame parent, boolean modal) 
    {
        super(parent, modal);
        initComponents();
        this.setLocationRelativeTo(parent);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblPhoto = new javax.swing.JLabel();
        lblArmed = new javax.swing.JLabel();
        lblVersion = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        btnCerrar = new javax.swing.JButton();
        legend = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("com/armed/client/interfaz/Bundle"); // NOI18N
        setTitle(bundle.getString("JDialogAbout.title")); // NOI18N
        setResizable(false);

        lblPhoto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/armed/client/interfaz/resources/logo.PNG"))); // NOI18N
        lblPhoto.setText(bundle.getString("JDialogAbout.lblPhoto.text")); // NOI18N

        lblArmed.setFont(new java.awt.Font("Verdana", 1, 11));
        lblArmed.setText(bundle.getString("JDialogAbout.lblArmed.text")); // NOI18N

        lblVersion.setText(bundle.getString("JDialogAbout.lblVersion.text")); // NOI18N

        btnCerrar.setFont(new java.awt.Font("Verdana", 0, 11));
        btnCerrar.setText(bundle.getString("JDialogAbout.btnCerrar.text")); // NOI18N
        btnCerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarActionPerformed(evt);
            }
        });
        jPanel1.add(btnCerrar);

        legend.setFont(new java.awt.Font("Verdana", 2, 11));
        legend.setText(bundle.getString("JDialogAbout.legend.text")); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblPhoto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(legend))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblArmed)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblVersion)))
                .addContainerGap(169, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(lblPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblArmed)
                    .addComponent(lblVersion))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(legend)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarActionPerformed
        this.dispose();
    }//GEN-LAST:event_btnCerrarActionPerformed
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCerrar;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel lblArmed;
    private javax.swing.JLabel lblPhoto;
    private javax.swing.JLabel lblVersion;
    private javax.swing.JLabel legend;
    // End of variables declaration//GEN-END:variables
    
}
